package com.zcyr.pojo;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * 对SQL执行结果的封装，用来返回给客户端.
 */
public class SQLResult {
    public final int updateCount;
    public final HashMap<String, Object> meteData;
    public final ArrayList<HashMap<String, String>> tableData;
    public final String type;
    private long time_consuming;

    public SQLResult(int updateCount, HashMap<String, Object> meteData, ArrayList<HashMap<String, String>> tableData, String type) {
        this.updateCount = updateCount;
        this.meteData = meteData;
        this.tableData = tableData;
        this.type = type;
    }

    public long getTime_consuming() {
        return time_consuming;
    }

    public void setTime_consuming(long time_consuming) {
        this.time_consuming = time_consuming;
    }
}
